#pragma once

class CZlib
{
public:
	//deflate
	static int zcompress(BYTE *data, ULONG ndata, BYTE *zdata, ULONG *nzdata);
	static int zdecompress(BYTE *zdata, ULONG nzdata, BYTE *data, ULONG *ndata);
	
	//gzip
	static int httpgzdecompress(BYTE * zdata, ULONG nzdata, BYTE * data, ULONG * ndata);
	static int gzcompress(BYTE *data, ULONG ndata,BYTE *zdata, ULONG *nzdata);
	static int gzdecompress(BYTE *zdata, ULONG nzdata,	BYTE *data, ULONG *ndata);
};

